package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.AdminUser;

public interface AdminUserMapper {
    int deleteByPrimaryKey(Long adminUserId);

    int insert(AdminUser record);

    int insertSelective(AdminUser record);

    AdminUser selectByPrimaryKey(Long adminUserId);

    int updateByPrimaryKeySelective(AdminUser record);

    int updateByPrimaryKey(AdminUser record);
    
    AdminUser selectUserByUserInfo(@Param("tel") String tel,@Param("userPwd") String userPwd);
    
    int selectCountByName(String userName);
    
    int selectCountByMobile(String mobile);
    
    int selectCountByPassword(@Param("pwd") String pwd,@Param("adminUserId") Long adminUserId);
    
    int updatePwdByMobile(@Param("pwd") String pwd,@Param("mobile") String mobile);
    
    List<AdminUser> selectUserList(@Param("nowAdminUserId") Long nowAdminUserId, @Param("beginIndex")int beginIndex,@Param("pageSize")int pageSize);
    
    int selectUserCount(Long nowAdminUserId);
    
    int deleteById(@Param("id")String id);
}